package it.polimi.digitalstate.manager;

import it.polimi.digitalstate.dto.CitizenDTO;
import it.polimi.digitalstate.dto.UserDTO;
import it.polimi.digitalstate.persist.SuperEntityManagerException;

import javax.ejb.Local;

@Local
public interface AccountManagerLocal {
	@Deprecated
	public void createUser(UserDTO userdto);
	
	/**
	 * It perform the registration of the user
	 * It checks the right condition, otherwise throw an Exception
	 * @param userdto 
	 * @param citizen
	 * @throws SuperEntityManagerException
	 */
	public void registerUser(UserDTO userdto,CitizenDTO citizen) throws SuperEntityManagerException ;
}
